home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / bbs / lcnt150u.zip / TEST.DOC < prev    next >
Text File  |  1991-12-19  |  4KB  |  88 lines

  1. TEST.EXE    - a utility to check whether FILES.BBS (or any file) has
  2.               been recently updated. (changed).
  3.  
  4.  
  5. If a user uploads a file and enters a description then you should run
  6. maintenance in your uploads  directory.   The next user will see your
  7. Files.Bbs in perfect appearance.  This is really necessary if you are
  8. using the advanced colour options.  The  obvious  solution is too run
  9. maintenance after every user,  but this method will only run Logcount
  10. if it is really necessary.
  11.  
  12. Typeing TEST will produce this brief help screen.
  13.  
  14. ┌──────────────────────────────────────────────────────────┐
  15. │   Compare this .EXE's file Time/Date with another File.  │
  16. │   Reset .EXE's time to  new time if other file updated.  │ 
  17. └──────────────────────────────────────────────────────────┘
  18.  
  19.  Usage: EXE_filename <Filename> <TimeName> <Q>
  20.  
  21.  <filename> is a fully qualified  path to a file you want to
  22.             monitor.  If this  file  is  updated  then  this
  23.             EXE_filename  will set it's own time to that new
  24.             time and will exit  with  errorlevel 10.  If the
  25.             monitored file has not been updated then nothing
  26.             much  happens, errorlevel 0 is  returned.  Batch
  27.             programs  can  check for  these error conditions
  28.             and appropriate tasks can be performed.         
  29.  
  30.  <TimeName> is a fully qualified path to a file  you want to
  31.             store the Updated file's Time/Date Stamp.  Note,
  32.             this file's time/date stamp will be changed, not
  33.             the EXE_filename.
  34.  
  35.  <Q>        Run Quietly - very little is displayed to screen.
  36.  
  37.  
  38. -----------------------------------------------------------------------
  39. O.K. here's how this works.
  40.  
  41. Example 1. Checking Files.BBS in uploads directory
  42.  
  43. Test c:\f\uploads\files.bbs             rem check if file updated
  44. if errorlevel 10 logcount -cmaint.cfg   rem do maint if required.
  45. Test c:\f\uploads\Files.bbs             rem reset time if Maintenance done.
  46.  
  47. Maint.Cfg
  48. --------------
  49. -LMaint.cfg     % lets read this .cfg file. We won't find anything to count
  50. -X<             % but LOGCOUNT refuses to run if no LOGFILE is declared.
  51. -Y>             % picked -L (CBCS log) to avoid any extra MAILER functions
  52. -M2             % put any non default options in here also.
  53. -Tm             % 'Truncate' for Maximus. - adjust 3 line descriptions.
  54. -wc:\f\uploads  % This the directory for maintenance.
  55.  
  56. Logcount will run, it will completely format the files.bbs to all options.
  57. It will add any  missing  download  indicators with  blank entries. Etc...
  58. This 'Maintenance' will  accomplish  the same  thing as if a file had been
  59. downloaded  from the  specified area.  Test must  be immediately run again
  60. because maintenance will have been performed and the timestamp was altered.
  61.  
  62. Example 2.
  63.  
  64. Test c:\max\ul.log                rem  let's check Maximus' UPLOADS logfile.
  65. if errorlevel 10 logcount -cmaint.cfg   rem do maint if required.
  66.  
  67. There is no  need to run  TEST.EXE  immediately since LOGCOUNT has not been
  68. working on the target file. It and TEST  will still have the same timestamp.
  69.  
  70. Both these example use the executing .EXE file to store the time/date stamp.
  71. If  you  want to use TEST to keep track of many different files the use the
  72. advanced option and store the time/date stamp on other non essential files.
  73. Stuff like Yell.bbs, batch  files, any file you aren't to concerned whether
  74. it's date/time stamp gets altered.  This tip is for other applications, but
  75. if you use this program with only Logcount then using TEST.EXE to store the
  76. date/time stamp is probably the best method.
  77.  
  78.  
  79. P.S.  Test.exe can be renamed any legal name. TEST.EXE knows where it is
  80.       (on the path, or in current director).
  81.  
  82. Note: Test.Exe probably will not work on Local Area Network Drives. I have
  83.       only tested it on an XT with a single Hardisk & 2 floppy diskettes.
  84.  
  85.  
  86.  
  87. RAFware November 14, 1990.
  88.